package com.test.test.service;

import com.test.test.dto.common.PageResp;
import com.test.test.dto.common.ResultResp;
import com.test.test.dto.userModule.RolePamar;
import com.test.test.dto.userModule.RoleResp;

public interface RoleService {

	ResultResp<Integer> addRole(RolePamar pamar) throws Exception;

	ResultResp<Boolean> modifyRole(RolePamar pamar)  throws Exception;

	ResultResp<RoleResp> findByRole(Integer roleId)  throws Exception;
	
	ResultResp<PageResp<RoleResp>> pageRole(RolePamar pamar)  throws Exception;
	
	ResultResp<RoleResp> deleteByRoleId(Integer roleId)  throws Exception;
}
